package com.algorithm.util;

import java.util.Random;

public class GenerateBigData {
	
	private static Random random = new Random();

	public static int[] generateBigArray() {
		int[] bigArray = new int[100000000];
		for (int i=0; i<80000000; i++) {
			bigArray[i] = i;
		}
		for (int i=80000000; i<100000000; i++) {
			bigArray[i] = 80000000 * 2 - i;
		}
		return bigArray;
	}

	public static int[][] generateMatrix() {
		int[][] matrix =  { { 0, 0, 9, 8, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0},
{ 0, 3, 0, 0, 0, 0, 0},
{ 0, 2, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0}};

		return matrix;
	}

	public static int[][] generateBigMatrix() {
		int[][] bigMatrix = new int[10000][10000];
		for (int i=0; i<10000; i++) {
			for (int j=0; j<10000; j++) {
				bigMatrix[i][j] = i+j;
			}
		}
		return bigMatrix;
	}
}
